package com.endurance.controller;

import com.endurance.strategy.context.PayContextStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: sunlin
 * @Date: 2024-05-04 12:56
 * @Version: 1.0
 * @Description:
 */
@RestController
public class PayController {

    @Autowired
    private PayContextStrategy payContextStrategy;

    @RequestMapping("/toPay")
    public String toPay(String payCode) {
        return payContextStrategy.toPayHtml(payCode);
    }

}
